package com.xiyuan.smartutils.csv;

import java.util.Objects;

/**
 * Utility class for input parameter validation.
 *
 * TODO Replace usage with {@link Objects} when we switch to Java 7.
 */
final class Assertions {

    private Assertions() {
        // can not be instantiated
    }

    static void notNull(final Object parameter, final String parameterName) {
        if (parameter == null) {
            throw new IllegalArgumentException("Parameter '" + parameterName + "' must not be null!");
        }
    }
}
